<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>历史场景对话 - 语言学习中心</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.tailwindcss.com">
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#3B82F6',
                        secondary: '#10B981',
                        accent: '#8B5CF6',
                        dark: '#1E293B',
                        light: '#F8FAFC',
                        historical: '#C2410C'
                    },
                    fontFamily: {
                        sans: ['Inter', 'system-ui', 'sans-serif'],
                        serif: ['Georgia', 'Cambria', 'serif']
                    },
                }
            }
        }
    </script>
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .text-shadow {
                text-shadow: 0 2px 4px rgba(0,0,0,0.3);
            }
            .historical-card {
                transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            }
            .historical-card:hover {
                transform: translateY(-8px) scale(1.01);
                box-shadow: 0 12px 20px rgba(0,0,0,0.1);
            }
            .timeline-line {
                @apply absolute left-6 md:left-1/2 top-0 bottom-0 w-0.5 bg-gray-200 transform md:-translate-x-1/2;
            }
            .timeline-dot {
                @apply absolute left-6 md:left-1/2 w-4 h-4 rounded-full bg-historical transform md:-translate-x-1/2 z-10;
            }
        }
    </style>
</head>
<body class="bg-light text-dark min-h-screen flex flex-col">
<!-- 导航栏 -->
<nav id="navbar" class="fixed w-full bg-white/90 backdrop-blur-sm shadow-sm z-50 transition-all duration-300">
    <div class="container mx-auto px-4 py-3 flex justify-between items-center">
        <a href="index.html" class="flex items-center space-x-2">
            <i class="fa fa-comments text-primary text-2xl"></i>
            <span class="font-bold text-xl text-primary">语言学习中心</span>
        </a>

        <!-- 桌面导航 -->
        <div class="hidden md:flex items-center space-x-8">
            <a href="index.html" class="font-medium text-gray-600 hover:text-primary transition-colors py-1">首页</a>
            <a href="random.html" class="font-medium text-gray-600 hover:text-primary transition-colors py-1">随便体验</a>
            <a href="english.html" class="font-medium text-gray-600 hover:text-primary transition-colors py-1">英语口语练习</a>
            <a href="history.html" class="font-medium text-historical border-b-2 border-historical py-1">历史场景对话</a>
        </div>

        <!-- 移动端菜单按钮 -->
        <button id="menu-toggle" class="md:hidden text-gray-600 focus:outline-none">
            <i class="fa fa-bars text-xl"></i>
        </button>
    </div>

    <!-- 移动端导航菜单 -->
    <div id="mobile-menu" class="md:hidden hidden bg-white border-t">
        <div class="container mx-auto px-4 py-2 flex flex-col space-y-3">
            <a href="index.html" class="font-medium text-gray-600 hover:text-primary transition-colors py-2">首页</a>
            <a href="random.html" class="font-medium text-gray-600 hover:text-primary transition-colors py-2">随便体验</a>
            <a href="english.html" class="font-medium text-gray-600 hover:text-primary transition-colors py-2">英语口语练习</a>
            <a href="history.html" class="font-medium text-historical py-2">历史场景对话</a>
        </div>
    </div>
</nav>

<!-- 主要内容 -->
<main class="flex-grow pt-16">
    <!-- 页面标题 -->
    <section class="relative py-16 md:py-24 overflow-hidden">
        <div class="absolute inset-0 bg-[url('https://picsum.photos/id/1050/1920/1080')] bg-cover bg-center"></div>
        <div class="absolute inset-0 bg-dark/70"></div>
        <div class="container mx-auto px-4 relative z-10 text-white">
            <div class="flex flex-col md:flex-row items-center justify-between">
                <div>
                    <h1 class="text-[clamp(1.8rem,4vw,3rem)] font-bold mb-4 text-shadow">历史场景对话</h1>
                    <p class="text-white/90 text-lg max-w-2xl">穿越时空，体验不同历史时期的经典对话场景，在学习语言的同时了解历史</p>
                </div>
                <a href="index.html" class="mt-6 md:mt-0 bg-white text-historical hover:bg-gray-100 font-medium px-6 py-3 rounded-lg shadow-md transition-all">
                    <i class="fa fa-home mr-2"></i> 返回首页
                </a>
            </div>
        </div>
    </section>

    <!-- 历史时期选择 -->
    <section class="py-16 bg-white">
        <div class="container mx-auto px-4">
            <h2 class="text-2xl font-bold mb-2 text-center">选择历史时期</h2>
            <p class="text-gray-600 text-center mb-12 max-w-2xl mx-auto">探索不同时代的语言风格和交流方式</p>

            <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 max-w-6xl mx-auto">
                <!-- 古代中国 -->
                <div class="historical-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="h-48 overflow-hidden">
                        <img src="https://picsum.photos/id/1059/600/400" alt="古代中国场景" class="w-full h-full object-cover transition-transform duration-700 hover:scale-110">
                    </div>
                    <div class="p-5">
                        <h3 class="text-xl font-bold mb-2 text-historical">古代中国</h3>
                        <p class="text-gray-600 text-sm mb-4">体验秦汉唐宋等时期的文人雅士对话，学习古文表达。</p>
                        <a href="#" class="inline-flex items-center text-historical font-medium hover:underline">
                            进入场景 <i class="fa fa-arrow-right ml-1"></i>
                        </a>
                    </div>
                </div>

                <!-- 古罗马 -->
                <div class="historical-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="h-48 overflow-hidden">
                        <img src="https://picsum.photos/id/1074/600/400" alt="古罗马场景" class="w-full h-full object-cover transition-transform duration-700 hover:scale-110">
                    </div>
                    <div class="p-5">
                        <h3 class="text-xl font-bold mb-2 text-historical">古罗马</h3>
                        <p class="text-gray-600 text-sm mb-4">感受罗马帝国时期的政治与日常对话，了解拉丁文化影响。</p>
                        <a href="#" class="inline-flex items-center text-historical font-medium hover:underline">
                            进入场景 <i class="fa fa-arrow-right ml-1"></i>
                        </a>
                    </div>
                </div>

                <!-- 文艺复兴 -->
                <div class="historical-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="h-48 overflow-hidden">
                        <img src="https://picsum.photos/id/1071/600/400" alt="文艺复兴场景" class="w-full h-full object-cover transition-transform duration-700 hover:scale-110">
                    </div>
                    <div class="p-5">
                        <h3 class="text-xl font-bold mb-2 text-historical">文艺复兴</h3>
                        <p class="text-gray-600 text-sm mb-4">体验14-17世纪欧洲的艺术与学术交流，学习典雅表达。</p>
                        <a href="#" class="inline-flex items-center text-historical font-medium hover:underline">
                            进入场景 <i class="fa fa-arrow-right ml-1"></i>
                        </a>
                    </div>
                </div>

                <!-- 工业革命 -->
                <div class="historical-card bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="h-48 overflow-hidden">
                        <img src="https://picsum.photos/id/1058/600/400" alt="工业革命场景" class="w-full h-full object-cover transition-transform duration-700 hover:scale-110">
                    </div>
                    <div class="p-5">
                        <h3 class="text-xl font-bold mb-2 text-historical">工业革命</h3>
                        <p class="text-gray-600 text-sm mb-4">感受18-19世纪工业变革时期的社会对话与技术交流。</p>
                        <a href="#" class="inline-flex items-center text-historical font-medium hover:underline">
                            进入场景 <i class="fa fa-arrow-right ml-1"></i>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 当前场景展示 -->
    <section class="py-16 bg-gray-50">
        <div class="container mx-auto px-4">
            <div class="max-w-4xl mx-auto">
                <div class="bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="bg-gradient-to-r from-amber-600 to-orange-600 text-white p-4">
                        <div class="flex flex-col md:flex-row justify-between items-start md:items-center">
                            <div>
                                <h2 class="font-bold text-xl">当前场景：孔子与弟子论学</h2>
                                <p class="text-sm text-white/80">春秋时期 · 约公元前500年</p>
                            </div>
                            <div class="mt-2 md:mt-0 flex space-x-2">
                                <button class="bg-white/20 hover:bg-white/30 text-white px-3 py-1 rounded text-sm transition-colors">
                                    <i class="fa fa-volume-up mr-1"></i> 听对话
                                </button>
                                <button class="bg-white/20 hover:bg-white/30 text-white px-3 py-1 rounded text-sm transition-colors">
                                    <i class="fa fa-info-circle mr-1"></i> 历史背景
                                </button>
                            </div>
                        </div>
                    </div>

                    <div class="p-6">
                        <!-- 场景图片 -->
                        <div class="mb-8 rounded-lg overflow-hidden">
                            <img src="https://p26-flow-imagex-download-sign.byteimg.com/tos-cn-i-a9rns2rl98/c2928101b03e44df955ef1ab0dc9b07b.png~tplv-a9rns2rl98-24:720:720.png?rcl=202509231222443DEFA059C18ED5260D7F&rk3s=8e244e95&rrcfp=8a172a1a&x-expires=1759206165&x-signature=H9fOgwRgG2o4uiCdhIuC33JGlL0%3D" alt="孔子与弟子论学场景" class="w-full h-auto">
                        </div>

                        <!-- 对话区域 -->
                        <div class="space-y-6 mb-8 font-serif text-lg leading-relaxed">
                            <div class="bg-amber-50 p-4 rounded-lg border-l-4 border-amber-500">
                                <p class="mb-1"><span class="font-bold text-historical">子路问曰：</span>「闻斯行诸？」</p>
                                <p class="text-gray-600 text-sm">子路问道："听到了就行动起来吗？"</p>
                            </div>

                            <div class="bg-gray-50 p-4 rounded-lg border-l-4 border-gray-300">
                                <p class="mb-1"><span class="font-bold text-dark">子曰：</span>「有父兄在，如之何其闻斯行之？」</p>
                                <p class="text-gray-600 text-sm">孔子说："有父亲和兄长在，怎么能听到了就行动起来呢？"</p>
                            </div>

                            <div class="bg-amber-50 p-4 rounded-lg border-l-4 border-amber-500">
                                <p class="mb-1"><span class="font-bold text-historical">冉有问曰：</span>「闻斯行诸？」</p>
                                <p class="text-gray-600 text-sm">冉有问道："听到了就行动起来吗？"</p>
                            </div>

                            <div class="bg-gray-50 p-4 rounded-lg border-l-4 border-gray-300">
                                <p class="mb-1"><span class="font-bold text-dark">子曰：</span>「闻斯行之。」</p>
                                <p class="text-gray-600 text-sm">孔子说："听到了就行动起来。"</p>
                            </div>

                            <div class="bg-amber-50 p-4 rounded-lg border-l-4 border-amber-500">
                                <p class="mb-1"><span class="font-bold text-historical">公西华曰：</span>「由也问闻斯行诸，子曰，『有父兄在』；求也问闻斯行诸，子曰，『闻斯行之』。赤也惑，敢问。」</p>
                                <p class="text-gray-600 text-sm">公西华说："仲由问听到了就行动起来吗，您说'有父亲和兄长在'；冉求问听到了就行动起来吗，您却说'听到了就行动起来'。我感到迷惑，冒昧地来问您。"</p>
                            </div>

                            <div class="bg-gray-50 p-4 rounded-lg border-l-4 border-gray-300 opacity-70">
                                <p class="mb-1"><span class="font-bold text-dark">子曰：</span>「求也退，故进之；由也兼人，故退之。」</p>
                                <p class="text-gray-600 text-sm">孔子说："冉求平时做事退缩，所以我鼓励他勇进；仲由平时好勇过人，所以我约束他退让。"</p>
                            </div>
                        </div>

                        <!-- 互动区域 -->
                        <div class="border-t pt-6">
                            <h3 class="font-bold mb-4">你也来参与对话：</h3>
                            <p class="text-gray-600 mb-4">如果你是孔子的弟子，听到老师的教导，你会如何回应？</p>

                            <div class="space-y-3 mb-6">
                                <div class="reply-option p-3 border border-gray-200 rounded-lg hover:border-historical hover:bg-amber-50 cursor-pointer transition-colors">
                                    <p class="font-medium">夫子因材施教，弟子受教了。</p>
                                </div>
                                <div class="reply-option p-3 border border-gray-200 rounded-lg hover:border-historical hover:bg-amber-50 cursor-pointer transition-colors">
                                    <p class="font-medium">请问夫子，如何才能知道自己是该进还是该退呢？</p>
                                </div>
                                <div class="reply-option p-3 border border-historical bg-amber-50 rounded-lg cursor-pointer transition-colors">
                                    <p class="font-medium text-historical">弟子明白了，做事应审时度势，因地制宜。</p>
                                </div>
                            </div>

                            <div class="flex justify-between">
                                <button class="bg-gray-200 hover:bg-gray-300 text-gray-700 font-medium px-5 py-2 rounded-lg transition-all flex items-center">
                                    <i class="fa fa-step-backward mr-2"></i> 上一场景
                                </button>
                                <button class="bg-historical hover:bg-historical/90 text-white font-medium px-5 py-2 rounded-lg transition-all flex items-center">
                                    下一场景 <i class="fa fa-step-forward ml-2"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 历史时间线 -->
    <section class="py-16 bg-white">
        <div class="container mx-auto px-4">
            <h2 class="text-2xl font-bold mb-2 text-center">历史对话时间线</h2>
            <p class="text-gray-600 text-center mb-12 max-w-2xl mx-auto">探索不同历史时期的经典对话</p>

            <div class="max-w-4xl mx-auto relative">
                <!-- 时间线 -->
                <div class="timeline-line"></div>

                <!-- 时间点1 -->
                <div class="relative pl-16 md:pl-0 md:flex md:justify-between mb-12 items-center">
                    <div class="timeline-dot" style="top: 12px;"></div>
                    <div class="md:w-5/12 mb-4 md:mb-0 md:text-right">
                        <h3 class="font-bold text-lg text-historical">公元前399年</h3>
                        <p class="text-gray-600">苏格拉底的审判</p>
                    </div>
                    <div class="md:w-5/12 md:pl-8">
                        <p class="text-gray-700">古希腊哲学家苏格拉底在雅典法庭上的辩护对话</p>
                    </div>
                </div>

                <!-- 时间点2 -->
                <div class="relative pl-16 md:pl-0 md:flex md:justify-between mb-12 items-center">
                    <div class="timeline-dot" style="top: 12px;"></div>
                    <div class="md:w-5/12 mb-4 md:mb-0 md:text-right">
                        <h3 class="font-bold text-lg text-historical">公元1492年</h3>
                        <p class="text-gray-600">哥伦布与伊莎贝拉女王</p>
                    </div>
                    <div class="md:w-5/12 md:pl-8">
                        <p class="text-gray-700">哥伦布请求西班牙女王资助其航海探险的对话</p>
                    </div>
                </div>

                <!-- 时间点3 -->
                <div class="relative pl-16 md:pl-0 md:flex md:justify-between mb-12 items-center">
                    <div class="timeline-dot" style="top: 12px;"></div>
                    <div class="md:w-5/12 mb-4 md:mb-0 md:text-right">
                        <h3 class="font-bold text-lg text-historical">1776年</h3>
                        <p class="text-gray-600">美国独立宣言起草</p>
                    </div>
                    <div class="md:w-5/12 md:pl-8">
                        <p class="text-gray-700">托马斯·杰斐逊与大陆会议代表讨论独立宣言的对话</p>
                    </div>
                </div>

                <!-- 时间点4 -->
                <div class="relative pl-16 md:pl-0 md:flex md:justify-between items-center">
                    <div class="timeline-dot" style="top: 12px;"></div>
                    <div class="md:w-5/12 mb-4 md:mb-0 md:text-right">
                        <h3 class="font-bold text-lg text-historical">1963年</h3>
                        <p class="text-gray-600">马丁·路德·金演讲前</p>
                    </div>
                    <div class="md:w-5/12 md:pl-8">
                        <p class="text-gray-700">马丁·路德·金与助手讨论"我有一个梦想"演讲的对话</p>
                    </div>
                </div>
            </div>
        </div>
    </section>
</main>

<!-- 页脚 -->
<footer class="bg-dark text-white py-12">
    <div class="container mx-auto px-4">
        <div class="grid grid-cols-1 md:grid-cols-4 gap-8 mb-8">
            <div>
                <div class="flex items-center space-x-2 mb-4">
                    <i class="fa fa-comments text-primary text-xl"></i>
                    <span class="font-bold text-lg">语言学习中心</span>
                </div>
                <p class="text-gray-400 mb-4">让语言学习变得更有趣、更高效</p>
                <div class="flex space-x-4">
                    <a href="#" class="text-gray-400 hover:text-primary transition-colors">
                        <i class="fa fa-facebook"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-primary transition-colors">
                        <i class="fa fa-twitter"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-primary transition-colors">
                        <i class="fa fa-instagram"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-primary transition-colors">
                        <i class="fa fa-youtube"></i>
                    </a>
                </div>
            </div>

            <div>
                <h4 class="font-bold text-lg mb-4">快速链接</h4>
                <ul class="space-y-2">
                    <li><a href="index.html" class="text-gray-400 hover:text-white transition-colors">首页</a></li>
                    <li><a href="random.html" class="text-gray-400 hover:text-white transition-colors">随便体验</a></li>
                    <li><a href="english.html" class="text-gray-400 hover:text-white transition-colors">英语口语练习</a></li>
                    <li><a href="history.html" class="text-gray-400 hover:text-white transition-colors">历史场景对话</a></li>
                </ul>
            </div>

            <div>
                <h4 class="font-bold text-lg mb-4">支持</h4>
                <ul class="space-y-2">
                    <li><a href="#" class="text-gray-400 hover:text-white transition-colors">帮助中心</a></li>
                    <li><a href="#" class="text-gray-400 hover:text-white transition-colors">常见问题</a></li>
                    <li><a href="#" class="text-gray-400 hover:text-white transition-colors">联系我们</a></li>
                </ul>
            </div>

            <div>
                <h4 class="font-bold text-lg mb-4">订阅更新</h4>
                <p class="text-gray-400 mb-4">获取最新的学习资源和技巧</p>
                <form class="flex">
                    <input type="email" placeholder="你的邮箱地址" class="px-4 py-2 rounded-l-lg w-full focus:outline-none text-dark">
                    <button type="submit" class="bg-primary hover:bg-primary/90 px-4 py-2 rounded-r-lg transition-colors">
                        <i class="fa fa-paper-plane"></i>
                    </button>
                </form>
            </div>
        </div>

        <div class="border-t border-gray-800 pt-8 text-center text-gray-500">
            <p>&copy; 2023 语言学习中心. 保留所有权利.</p>
        </div>
    </div>
</footer>

<script>
    // 移动端菜单切换
    const menuToggle = document.getElementById('menu-toggle');
    const mobileMenu = document.getElementById('mobile-menu');

    menuToggle.addEventListener('click', () => {
        mobileMenu.classList.toggle('hidden');
    });

    // 导航栏滚动效果
    const navbar = document.getElementById('navbar');

    window.addEventListener('scroll', () => {
        if (window.scrollY > 50) {
            navbar.classList.add('py-2', 'shadow');
            navbar.classList.remove('py-3');
        } else {
            navbar.classList.add('py-3');
            navbar.classList.remove('py-2', 'shadow');
        }
    });

    // 回答选项交互
    const replyOptions = document.querySelectorAll('.reply-option');
    replyOptions.forEach(option => {
        option.addEventListener('click', () => {
            // 移除所有选项的选中状态
            replyOptions.forEach(opt => {
                opt.classList.remove('border-historical', 'bg-amber-50');
                opt.classList.add('border-gray-200');

                // 重置文字颜色
                const text = opt.querySelector('p');
                text.classList.remove('text-historical');
            });

            // 添加当前选项的选中状态
            option.classList.remove('border-gray-200');
            option.classList.add('border-historical', 'bg-amber-50');

            // 设置文字颜色
            const text = option.querySelector('p');
            text.classList.add('text-historical');
        });
    });

    // 平滑滚动到页面锚点
    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
        anchor.addEventListener('click', function(e) {
            e.preventDefault();
            const targetId = this.getAttribute('href');
            if (targetId !== '#') {
                const targetElement = document.querySelector(targetId);
                if (targetElement) {
                    window.scrollTo({
                        top: targetElement.offsetTop - 80,
                        behavior: 'smooth'
                    });
                }
            }
        });
    });
</script>
</body>
</html>
